import request from '@/utils/request'

// 查询列表
export function listArtificialpass(query) {
  return request({
    url: '/kmwlpts/artificialpass/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function getArtificialpass(id) {
  return request({
    url: '/kmwlpts/artificialpass/getInfo/' + id,
    method: 'get'
  })
}

// 新增
export function addArtificialpass(data) {
  return request({
    url: '/kmwlpts/artificialpass',
    method: 'post',
    data: data
  })
}

// 修改
export function updateArtificialpass(data) {
  return request({
    url: '/kmwlpts/artificialpass',
    method: 'put',
    data: data
  })
}

// 删除
export function delArtificialpass(id) {
  return request({
    url: '/kmwlpts/artificialpass/' + id,
    method: 'delete'
  })
}

// 查询单证信息
export function getBindingRoadTransport(billCode) {
  return request({
    url: '/kmwlpts/bills/selectGBills/' + billCode,
    method: 'get'
  })
}

//申报单证
export function declareArtificialpass(id) {
  return request({
    url: '/kmwlpts/artificialpass/declare/' + id,
    method: 'post'
  })
}
